NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
  ServerName <%= srvname %>
<% if serveraliases.is_a? Array %>
<% serveraliases.each do |name| %><%= "  ServerAlias #{name}\n" %><% end %>
<% elsif serveraliases != '' %>
<%= "  ServerAlias #{serveraliases}" %>
<% end %>
  Redirect / <%= dest %>/
</VirtualHost>

